<?php

namespace app\api\controller;

use app\common\model\store\shop\Clerk;

/**
 * 用户管理
 * Class User
 * @package app\api
 */
class Leap extends Controller
{


    /**
     * 用户自动登录
     * @return array
     * @throws \app\common\exception\BaseException
     * @throws \think\Exception
     * @throws \think\exception\DbException
     *  https://weicheng.6sjs.com/index.php/api/leap/logininfo?wxapp_id=10001&user_id=10114
     */
    public function logininfo()
    {

        $user_id = input()['user_id'];

        $Clerk = Clerk::where('user_id',$user_id)
            ->where('status',1)
            ->where('is_delete',0)
            ->find();

        return $this->renderSuccess([
            'Clerk' => $Clerk,
        ]);
    }



}
